<?php
class sms_config {
	const MSG_ALL 			= 0;	//所以类型的消息 
	const MSG_SMS_CNT 		= 1;	//短消息数
	const MSG_SYS_SMS_CNT 	= 2;	//系统消息数
	const MSG_MESSAGE_CNT 	= 3;	//留言数
	const MSG_COMMENT_CNT 	= 4;	//评论数
	const MSG_SYS_FRIENDS 	= 5;	//好友请求数
	const MSG_SYS_BUFF 	  	= 6;	//BUFF数
	const MSG_SYS_GIFT 	  	= 7;	//礼物数
	const MSG_SYS_CITE 	  	= 8;	//转帖数
	const MSG_RECOM_CNT	  	= 9;	//评论回复数
	const MSG_REMSG_CNT	  	= 10;	//留言回复数
	const MSG_DKP_CNT	  	= 11;	//DKP数
	const MSG_FICTION_CNT 	= 12;	//小说数
	const MSG_CARTOON_CNT 	= 13;	//漫画
	const MSG_ANIMATION_CNT = 14;	//漫画
	const MSG_SYS_ANNO_CNT 	= 15;	//短消息数
}

/**
 * 新短消息数 memcache缓存 key前缀
 * Enter description here ...
 * @var unknown_type
 */
define('CACHE_KEY_NEW_SMS_PRE','sms_new_cnt_');

/**
 * 新转贴提醒memcache缓存key前缀
 */
define('CACHE_KEY_NEW_CITE_PRE','new_cite_');

define('CACHE_EXPIRY_TIME', 24*3600);					//定义缓存过期时间 单位：小时expiry

define('VERIFY_CODE','awtSvwvHotEpxP23ugl5');

defined('CACHE_KEY_SYS_ANNO') or define('CACHE_KEY_SYS_ANNO','new_sys_announcement');

$_SERVER['config']['warn'] = array(
	1 => array(
			'msg' => '您好，请您在日志中不要创建无意义的内容。谢谢合作！'
		),
	2 => array(
			'msg' => '您好，请您在相册中不要创建无意义的内容。谢谢合作！'
		),
	3 => array(
			'msg' => '您好，请您在转贴中不要创建无意义的内容。谢谢合作！'
		)
);

$_SERVER['config']['newsms_key'] = array(
			sms_config::MSG_SMS_CNT		=>	'smsnum',
			sms_config::MSG_RECOM_CNT	=>	'recomment',
			sms_config::MSG_COMMENT_CNT	=>	'comnum',
			sms_config::MSG_SYS_SMS_CNT	=>	'sysnum',
			sms_config::MSG_MESSAGE_CNT	=>	'msgnum',
			sms_config::MSG_REMSG_CNT	=>	'remsgnum',
			sms_config::MSG_SYS_FRIENDS	=>	'friendsnum',
			sms_config::MSG_SYS_BUFF	=>	'buffnum',
			sms_config::MSG_SYS_GIFT	=>	'giftnum',
			sms_config::MSG_SYS_CITE	=>	'citenum',
		);

$_SERVER['config']['resource'] = array(
	'type' =>array(
			'blog' => array('blog','index','view_thread'), //博客
			'mood' => array('comment','signature','state_show'), //心情
			'cite' => array('cite','index','viewcite'), //转帖
			'cite_album' => array('cite','index','viewAlbum'), //相册转帖
			'album'		=>	array('album','category','photo_list'),	//相册
			'rating'	=> array('rating','rating','show'),			//评比
			'photo' => array('album','photo','view_thread'), //照片
			'poll' => array('poll','index','viewpoll'), //投票
			'armory'=>array('armory','index','my_snap_shot'), //魔兽角色
			'message'=>array('index','index','index'), //留言
			'game_exp1'=> array('game','newgame','game_show'), //游历2
			'game_exp2'=> array('game','nthgame','view_game'), //游历3
			'armory_act' =>array('armory','index','my_armory'), //魔兽角色
			'active'	=> array('active','index','detail'),
			'bet'	=>	array('bet','view','index')
	),
	'interface' =>array(
			'blog'	=> 'blog_util_interface',
			'photo' => 'album_util_interface',
			'mood' 	=> 'comment_util_state',
			'cite'	=> 'cite_util_interface',
			'cite_album' => 'cite_util_interface',
			'album'		=>	'album_util_category',
			'rating'	=>	'rating_util_interface',
			'active'	=> 'active_util_active',
			'poll'	=> 'poll_util_comments',
			'armory'=> 'armory_util_fetcher',
			'message'=>'',
			'game_exp1'=> 'game_util_plug', //游历2
			'game_exp2'=> 'game_util_plug', //游历3
			'armory_act'=>'armory_util_fetcher', //魔兽角色
			'bet'	=>	'bet_util_interface'
		),
	'para' =>array(
		'blog'=>'id','uid',
		'mood'=>'',
		'cite'=>'id',
		'cite_album' => 'id',
		'album'		=>	'cid',
		'rating'	=> 'rid',
		'active'	=> 'actid',
		'photo'=>'id',
		'poll'=>'pid',
		'armory'=>'sid',
		'armory_act' =>'id',
		'message'=>'uid',
		'game_exp1'=>'game_id',
		'game_exp2'=>'game_id',
		'bet'	=>	'id'
	),
);

$_SERVER['config']['resourc_name'] =array(
	'blog' => '日志',
	'mood' => '心情',
	'cite' => '转帖',
	'cite_album' =>'转帖',
	'album'		=>'相册',
	'rating'	=> '评比',
	'photo'=> '相片',
	'poll' => '投票',
	'armory'=> '魔兽快照',
	'message'=>'留言',
	'game_exp2'=>'游历',
	'game_exp3'=>'游历',
	'armory_act'=>'魔兽角色',
	'bet'	=>	'竞猜',
	'active'	=>	'活动'
	)

?>